
Ext.define('Avrio.model.Person', {
    extend: 'Ext.data.Model',
// <editor-fold defaultstate="collapsed" desc="fields">
    fields: [
        { name: 'id',                       type: 'int' },
        { name: 'email',                    type: 'string' },
        { name: 'version',                  type: 'bigint', defaultValue: 0 },
        { name: 'drivers_license_num',      type: 'string' },
        { name: 'ssn',                      type: 'int',    defaultValue: 0 },
        { name: 'account_number',           type: 'string' },
        { name: 'name_prefix',              type: 'string' },
        { name: 'given_name',               type: 'string' },
        { name: 'middle_name',              type: 'string' },
        { name: 'family_name',              type: 'string' },
        { name: 'name_suffix',              type: 'string' },
        { name: 'alias_name',               type: 'string' },
        { name: 'description',              type: 'string' },
        { name: 'telephone1',               type: 'string' },
        { name: 'telephone2',               type: 'string' },
        { name: 'telephone3',               type: 'string' },
        { name: 'gender_code',              type: 'string' },
        { name: 'birth_time',               type: 'date', dateFormat: 'Y-m-d 00:00:00' },
        { name: 'multiple_birth_ind',       type: 'boolean', defaultValue: false },
        { name: 'birth_order',              type: 'int', defaultValue: 0 },
        { name: 'deceased_ind',             type: 'boolean', defaultValue: false },
        { name: 'deceased_datetime',        type: 'date', dateFormat: 'Y-m-d 00:00:00' },
        { name: 'organ_doner_ind',          type: 'boolean', defaultValue: false },
        { name: 'address_line1',            type: 'string' },
        { name: 'address_line2',            type: 'string' },
        { name: 'city',                     type: 'string' },
        { name: 'state_code',               type: 'string' },
        { name: 'postal_code',              type: 'string' },
        { name: 'country_code',             type: 'string' },
        { name: 'marital_status_code',      type: 'string' },
        { name: 'occupation_code',          type: 'string' },
        { name: 'nationality',              type: 'string' },
        { name: 'citizen_role_type',        type: 'string' },
        { name: 'related_person',           type: 'int', defaultValue: 0 },
        { name: 'relationship_role_type',   type: 'string' },
        { name: 'birth_place',              type: 'string' },
        { name: 'primary_language_code',    type: 'string' },
        { name: 'race',                     type: 'string' },
        { name: 'ethnicity',                type: 'string' },
        { name: 'education_level_code',     type: 'string' },
        { name: 'disability_type_code',     type: 'string' },
        { name: 'living_arrangement_code',  type: 'string' },
        { name: 'religious_affiliation_code',type: 'string' },
        { name: 'mothers_maiden_name',      type: 'string' },
        { name: 'veterans_status',          type: 'string' }
    ],
// </editor-fold>
    idProperty: 'id'
});
